package com.time.sky.service;

import com.time.sky.entity.User;
import com.time.sky.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByName(String username, String password) {
        return userMapper.getUserByName( username,password);
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }
}
